import Component from "./Component"
export interface GoshengConfig{
    id: string,
    component: Component
}

export default function Gosheng(opt:GoshengConfig) {
    const app = document.querySelector(opt.id);
    app?.appendChild(opt.component.render());
    // const component = opt.component
    // new Proxy(component, {
    //     set: component.render,
    // });
}